package com.nzx.cloud.customer.controller;

import com.nzx.cloud.customer.feignclient.EurekaFeignClient;
import com.nzx.cloud.customer.feignclient.EurekaHystrixClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类描述：
 *
 * @auther niezhuxe
 * @date 2019/12/13
 */
@RestController
public class UseController {

    @Autowired
    private EurekaFeignClient eurekaFeignClient;
    @Autowired
    private EurekaHystrixClient eurekaHystrixClient;
    @RequestMapping("/test01")
    public String test(){

        return eurekaFeignClient.test();
    }

    @RequestMapping("/test02")
    public String test1(){

        return eurekaHystrixClient.hystrix();
    }
}
